//
//  XMMenuView.h
//  XiaoMiao
//
//  Created by 23 on 2017/11/13.
//  Copyright © 2017年 smallyou. All rights reserved.
//

#import <UIKit/UIKit.h>

@class XMMenuView;
@protocol XMMenuViewDelegate <NSObject>


/**
 菜单按钮被点击的回调
 
 @param menuView 菜单视图
 @param button 点击的按钮
 */
- (void)menuView:(XMMenuView *)menuView didMenuBtnClicked:(UIButton *)button;

@end


@interface XMMenuView : UIView


@property(nonatomic,weak) id<XMMenuViewDelegate> delegate;

/**菜单栏标题*/
@property(nonatomic,strong) NSArray *titles;

/**当前选中的index*/
@property(nonatomic,assign) NSUInteger selectedIndex;

@end
